<template>
  <div class="admin">
<!--    <h1>这是后台管理页面</h1>-->
    <el-container>
      <el-container class="el-container">
        <el-header class="el-header">这是后台管理页面</el-header>
        <el-container>
          <el-aside class="el-aside" width="200px">
<!--            <el-menu  default-active="/admin/user/list" class="el-menu-vertical-demo">-->
<!--              <el-submenu index="/admin">-->
<!--                <template slot="title">-->
<!--                  <i class="el-icon-s-custom"></i>-->
<!--                  <span>用户管理</span>-->
<!--                </template>-->
<!--                <el-menu-item index="/admin/user/list">-->
<!--                  <i class="el-icon-s-data"></i>-->
<!--                  <span>用户列表</span>-->
<!--                </el-menu-item>-->
<!--                <el-menu-item index="/admin/user/add-new">-->
<!--                  <i class="el-icon-s-data"></i>-->
<!--                  <span>增加用户</span>-->
<!--                </el-menu-item>-->
<!--              </el-submenu>-->
<!--            </el-menu>-->

          </el-aside>
          <el-main class="el-main">
            <el-table :data="tableData">
              <el-table-column prop="date" label="日期" width="140">
              </el-table-column>
              <el-table-column prop="name" label="姓名" width="120">
              </el-table-column>
              <el-table-column prop="address" label="地址">
              </el-table-column>
            </el-table>
          </el-main>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    const item = {
      date: '2016-05-02',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1518 弄'
    };
    return {
      tableData: Array(20).fill(item)
    }
  }
};
</script>
<style>

.el-container{
  position: absolute;
  top: 60px;bottom: 0;
  left: 0;
  right: 0;
}

.el-header {
  background-color: #B3C0D1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;
  line-height: 160px;
}


.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>